
#include "dvr_svr.h"
#include "dvr_mml_svr.h"
#include "dvr_server_udp.h"

CStreamerSvr g_stream_server;
CUdpSvrSocket  g_dvrSvrUdp;
int g_port = 7878;
int g_port_media = 5666;

int start_dvr_svr()
{
    //控制指令服务器
    g_dvrSvrUdp.Init(32 << 10, g_port);
    g_dvrSvrUdp.Start();
    
    g_stream_server.Init(1024<<10,g_port_media);
    g_stream_server.SetLiveCH(0x01);
    g_stream_server.Start();

    printf("start dvr server.\n");
    return 0;
}